<?php

namespace App\Models\Shop;

use App\Models\Traits\DateTimeTrait;
use App\Models\Traits\ModelSearchTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ConfigTable extends Model
{
    use SoftDeletes, DateTimeTrait, ModelSearchTrait;

    protected $dateFormat = 'Y-m-d H:i:s';
    protected $guarded = [];
    protected $table = 'config_tables'; // 使用的表名，不配置会使用类名作为默认

    //
    public function searchConditions():array{
        return [
            ['key','like'],
            ['value','like'],
        ];
    }

}
